package emtext;

public class Manager extends FullTimeEmployee implements Bonus{
    int teamSize;

    public Manager(int id, String name,int teamSize, double monthlySalary) {
        super(id, name, monthlySalary);
        this.teamSize = teamSize;
    }
    public double getBonus(){
        return teamSize*500;
    }
    @Override
    public void printBonus()
    {
        System.out.println("Bonus: "+getBonus());
    }
    @Override
    public  void displayInfo()
    {
        System.out.println("seamsize="+teamSize+" bonus="+getBonus());
    }

}
